<?php
class Modules_layoutAction extends IntesysAction {
	public function update(){
		$pageDB=D('Pages_layout');
		$result=$pageDB->where(['title'=>$_POST['title']])->setField('source',$_POST['content']);
		die(json_encode(['result'=>$result]));
	}
}